package com.hightrast.service.api.domain.vo.rastOrderItem;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <p>
 * 订单项列表返回
 * </p>
 *
 * @author hx
 * @since 2025-01-24
 */
@Data
@ApiModel(value="订单项列表返回")
public class QueryOrderProductItemsVo {

    @ApiModelProperty(value = "商品订单项id")
    private Long orderItemId;

    @ApiModelProperty(value = "关联订单ID")
    private Long orderId;

    @ApiModelProperty(value = "商品名称")
    private String title;

    @ApiModelProperty(value = "商品数量")
    private Integer quantity;

    @ApiModelProperty(value = "商品变体名称")
    private String variantTitle;

    @ApiModelProperty(value = "供应商名称")
    private String vendor;

    @ApiModelProperty(value = "商品ID")
    private Long productId;

    @ApiModelProperty(value = "商品最终价格价格")
    private String finalPrice;

    @ApiModelProperty(value = "商品折扣")
    private String totalDiscount;

    @ApiModelProperty(value = "订单创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "订单编号")
    private String orderNumber;

    @ApiModelProperty(value = "商品原价格")
    private String originalPrice;

    @ApiModelProperty(value = "商品类型")
    private String productType;

    @ApiModelProperty(value = "设计师名字")
    private String designer;

    @ApiModelProperty(value = "商品折扣类型")
    private String discountType;

    @ApiModelProperty(value = "如果货物已经到了，那么就是默认Issuing状态，如果货物已经退款的话，那么就是Not issued状态，然后还剩一个Issued状态的话就需要管理员手动去设置")
    private Integer paybackStatus;

    @ApiModelProperty(value = "已到货和已退款")
    private Integer orderStatus;

    @ApiModelProperty(value = "商品图片")
    private String image;

    @ApiModelProperty(value = "是否商品退款项，1-商品退款项，2-原商品项")
    private Integer primaryItemIdType;

    //根据orderStatus 如果货物已经到了，那么就是默认Issuing状态，如果货物已经退款的话，那么就是Not issued状态，然后还剩一个Issued状态的话就需要管理员手动去设置
    @ApiModelProperty(value = "佣金发放状态，1-Issuing 发放中，2-Not issued 不发放，3-Issued 已发放")
    private String paybackStatusStr;

    @ApiModelProperty(value = "订单状态，1-Goods Received 已到货，2-Return Goods 已退款，3-In Transit 进行中")
    private String orderStatusStr;
}
